/**
 * 
 */
package br.ifpb.edu.uml.elements;

import java.util.ArrayList;

public class Methods {

	private ArrayList<AttributeSimp> parameteres = new ArrayList<AttributeSimp>( );
	private String name;
	private String typeReturn;
	private String acessoModified;
	
	public Methods( ) {
		
	}
	
	public Methods( String name, String typeReturn, String acessModified, ArrayList<AttributeSimp> listAttribute ) {
		parameteres = listAttribute;
		setName( name );
		setTypeReturn( typeReturn );
		setAcessModified( acessModified );
	}
	
	/**
	 * >>> GET
	 */
	public AttributeSimp getAttributes( int index ) {
		return parameteres.get(index);
	}
	public String getName() {
		return name;
	}
	public String getTypeReturn() {
		return typeReturn;
	}
	public String getAcessModified() {
		return acessoModified;
	}
	public int getSize( ) {
		return parameteres.size();
	}
	
	/**
	 * >>> SET
	 */
	public void setAttributes( AttributeSimp a ){
		parameteres.add( a );
	}
	public void setName(String nome) {
		this.name = nome;
	}
	public void setTypeReturn(String typeReturn) {
		this.typeReturn = typeReturn;
	}
	public void setAcessModified(String AcessModified) {
		this.acessoModified = AcessModified;
	}
	
}
